package com.zyb.warehouse.service.impl;

import com.zyb.warehouse.entity.Place;
import com.zyb.warehouse.mapper.PlaceMapper;
import com.zyb.warehouse.service.PlaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:产地业务层接口实现类
 */
@Service
public class PlaceServiceImpl implements PlaceService {

    @Autowired
    private PlaceMapper placeMapper;

    /**
     * 查询所有产地
     *
     * @return
     */
    public List<Place> queryAllPlace() {
        return placeMapper.selectAllPlace();
    }
}
